﻿using SpiderMaster.Net.Exceptions;

namespace SpiderMaster.AspNet.TradingSystem
{
    public sealed partial class MemberManagement
    {
        internal static MemberManagement Initialize()
        {
            if (_Instance.IsNotNull())
                throw new InitializeInstanceException<MemberManagement>("Member Management Settings has allready been Initialized. Please check your code and correct as needed.");
            _Instance = GetInstance(); // DO NOT USE -- new MemberManagement();

            return _Instance;
        }
    }
}
